package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.CouponSendRecordQueryReq;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.CouponSendRecord;
import com.mz.mattress.api.enums.CouponSendTypeEnum;

public interface CouponSendRecordService {

    Result<IPage<CouponSendRecord>> listPage(CouponSendRecordQueryReq req);

    Result<CouponSendRecord> getById(Integer id);

    /**
     * 给手机号发放 对应类型的优惠券
     * @param mobile
     * @param enums
     * @return
     */
    Result addBySendType(String mobile, CouponSendTypeEnum enums);

}
